home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 3 / Gold Medal Software - Volume 3 (Gold Medal) (1994).iso / utils1 / bat4pkz.arj / ZIP&COPY.BAT < prev    next >
DOS Batch File  |  1994-02-14  |  3KB  |  120 lines

  1. @echo off
  2. cls
  3. rem zip©.bat
  4. if "%1" == "" goto help
  5. if "%2" == "" goto message
  6. if "%3" == "" goto message
  7. cd %1:\%2
  8. if not exist %1:\%2\nul goto error
  9. if exist %1:\%2
  10. %1:
  11. cd %1:\%2
  12. echo.
  13. echo.
  14. echo. 
  15. echo The directory %1:\%2 is found.
  16. echo.
  17. echo.
  18. echo. 
  19. choice /c:cq /n Press C for Continue or Q to Quit?
  20. if errorlevel 2 goto exit
  21. if errorlevel 1 goto doit
  22. :doit
  23. cls
  24. c:\pkzip\pkzip -ex -rp c:\zipit\%3
  25. cls
  26. echo.
  27. echo.
  28. echo.
  29. dir c:\zipit\*.zip | find "-"
  30. echo.
  31. echo.
  32. echo.
  33. echo            Make sure the %3.zip file fits onto a floppy ! 
  34. echo.
  35. echo                      HD 3.5    1457664 bytes
  36. echo                      DD 3.5     730112 bytes
  37. echo                      HD 5.25   1213952 bytes
  38. echo.
  39. pause
  40. cls
  41. echo.
  42. echo.
  43. echo.
  44. echo                  ***********************************
  45. echo                  *** A     Floppydrive A:\       ***
  46. echo                  *** B     Floppydrive B:\       ***
  47. echo                  *** T     To current Directory  ***
  48. echo                  ***********************************
  49. echo.
  50. echo. 
  51. choice /c:abt Select the drive, were to move the %3.zip file..
  52. if errorlevel 3 goto end
  53. if errorlevel 2 goto bmove
  54. if errorlevel 1 goto amove
  55. :amove
  56. cls
  57. echo.
  58. echo.
  59. echo.
  60. echo.
  61. echo                  moving the %3.zip file to A-drive.....
  62. copy c:\zipit\%3.zip a:
  63. del c:\zipit\%3.zip
  64. cls
  65. goto end
  66. :bmove
  67. cls
  68. echo.
  69. echo.
  70. echo.
  71. echo.
  72. echo                  moving the %3.zip file to B-drive......
  73. copy c:\zipit\%3.zip b:
  74. del c:\zipit\%3.zip
  75. cls
  76. goto end
  77. :error
  78. cls
  79. echo.
  80. echo.
  81. echo.
  82. echo            The directory you specified does not exist...
  83. echo            Check the directory name and try again...
  84. echo.
  85. echo.
  86. echo.
  87. goto exit
  88. :message
  89. echo.
  90. echo    You must specify a directory after the drive name
  91. echo    and a zip file name after the directory name ....
  92. echo    if you are not sure, type zip© [enter]
  93. goto exit
  94. :help
  95. echo.
  96. echo.
  97. echo     Usage:  zip©.bat (drive) (directory) (zip file name) 
  98. echo.
  99. echo     Example:  zip© c windows win 
  100. echo.
  101. echo     This would zip up the Windows directory in C-drive with all it's
  102. echo     Subdirectories and create the win.zip file then it will move
  103. echo     the win.zip file to the Floppy drive you specify.....
  104. echo.
  105. echo     Notice not to use any colons or backlashes!
  106. goto exit
  107. :end
  108. cls
  109. echo.
  110. echo.
  111. echo.
  112. echo                  ╔═══════════════════════════╗
  113. echo                  ║ DDDD    OOO   N   N  EEEE ║
  114. echo                  ║ D   D  O   O  NN  N  E    ║  
  115. echo                  ║ D   D  O   O  N N N  EEE  ║
  116. echo                  ║ D   D  O   O  N  NN  E    ║
  117. echo                  ║ DDDD    OOO   N   N  EEEE ║
  118. echo                  ╚═══════════════════════════╝
  119. :exit
  120.